﻿#ifndef _COINMANAGER_H_
#define _COINMANAGER_H_
#include <list>
//using namespace std;
class Coin;
class CoinManager {
public:

	void addCoin(Coin* coin);//参数：要添加英雄子弹的指针
	void collection(Coin* coin);//参数：要回收英雄子弹的指针
	static CoinManager* getInstance() {
		if (nullptr == pInstance) {
			pInstance = new CoinManager();
		}
		return pInstance;
	}
	~CoinManager();
	void clearList();	//清空集合
public:
	std::list<Coin*> coinList;//生存池
private:
	static CoinManager* pInstance;
	CoinManager();
};
#endif // !_COINMANAGER_H_



